package {{.App}}

import (
	"apifast/api/{{.App}}/controller"
	"apifast/api/{{.App}}/model"
	"apifast/db"
	"apifast/pkg/router"

	"github.com/gin-gonic/gin"
)

// init 初始化
func init() {
	db.RegisterModel(
		&model.{{.Model}}{},
	)
	router.RegisterJWT("/{{.App}}", func(r *gin.RouterGroup) {
		controller.{{.Model}}{}.Routers(r.Group("/{{.Name}}"))
	})
}
